package com.jili.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jili.blog.dao.entity.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagMapper extends BaseMapper<Tag> {
    /**
     * 根据文章id查询标签列表
     * @param articleId
     * @return
     */
    List<Tag> findTagsByArticleId(long articleId);

    List<Long> findHotsTagsId(@Param("filter") int limit);

    List<Tag> findTagsByIds(@Param("Ids")List<Long> tagIdsList);
}
